using RxjhServer.DbClss;
using System;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;

namespace RxjhServer
{
	public class Form5 : Form
	{
		private IContainer components = null;

		private Button button1;

		private Label label1;

		private TextBox textBox1;

		private Label label2;

		public Form5()
		{
			InitializeComponent();
		}

		private void button1_Click(object sender, EventArgs e)
		{
			string sqlCommand = string.Format("UPDATE TBL_ACCOUNT SET FLD_FQ=" + textBox1.Text);
			string sqlCommand2 = string.Format("UPDATE TBL_人物数据 SET FLD_FQID=" + textBox1.Text);
			DBA.ExeSqlCommand(sqlCommand, "rxjhaccount");
			DBA.ExeSqlCommand(sqlCommand2, "GameServer");
			Form1.WriteLine(3, "合区完成，可以开启游戏了！");
			MessageBox.Show("合区完成,可以进行开区了！", "友情提示");
		}

		protected override void Dispose(bool disposing)
		{
			if (disposing && components != null)
			{
				components.Dispose();
			}
			base.Dispose(disposing);
		}

		private void InitializeComponent()
		{
			System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(RxjhServer.Form5));
			button1 = new System.Windows.Forms.Button();
			label1 = new System.Windows.Forms.Label();
			textBox1 = new System.Windows.Forms.TextBox();
			label2 = new System.Windows.Forms.Label();
			SuspendLayout();
			button1.Location = new System.Drawing.Point(201, 14);
			button1.Name = "button1";
			button1.Size = new System.Drawing.Size(75, 23);
			button1.TabIndex = 0;
			button1.Text = "确认进行合区";
			button1.UseVisualStyleBackColor = true;
			button1.Click += new System.EventHandler(button1_Click);
			label1.AutoSize = true;
			label1.Location = new System.Drawing.Point(12, 19);
			label1.Name = "label1";
			label1.Size = new System.Drawing.Size(71, 12);
			label1.TabIndex = 1;
			label1.Text = "分区识别号:";
			textBox1.ForeColor = System.Drawing.Color.Red;
			textBox1.Location = new System.Drawing.Point(83, 15);
			textBox1.Name = "textBox1";
			textBox1.Size = new System.Drawing.Size(100, 21);
			textBox1.TabIndex = 2;
			textBox1.Text = "d1";
			textBox1.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
			label2.Font = new System.Drawing.Font("宋体", 12f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 134);
			label2.ForeColor = System.Drawing.Color.Red;
			label2.Location = new System.Drawing.Point(14, 57);
			label2.Name = "label2";
			label2.Size = new System.Drawing.Size(264, 99);
			label2.TabIndex = 3;
			label2.Text = "合区工具 请自行参考账号库里的分区识别号，比如老区识别号为(D1)新区识别号为(D2)，那么你需要将新区合入老区，那么就在编辑框里输入老区识别号(D1)即可进行合区！！";
			base.AutoScaleDimensions = new System.Drawing.SizeF(6f, 12f);
			base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
			base.ClientSize = new System.Drawing.Size(296, 163);
			base.Controls.Add(label2);
			base.Controls.Add(textBox1);
			base.Controls.Add(label1);
			base.Controls.Add(button1);
			base.Icon = (System.Drawing.Icon)resources.GetObject("$this.Icon");
			base.Name = "Form5";
			Text = "合区工具";
			ResumeLayout(false);
			PerformLayout();
		}
	}
}
